package com.guandeng.mall.portal.controller;

import com.guandeng.mall.common.api.CommonResult;
import com.guandeng.mall.portal.service.MemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.Map;

@Controller
@Api(tags = "DubboController", description = "dubbo测试")
public class DubboController {
    private MemberService memberService;


    @ApiOperation("dubbo测试")
    @RequestMapping(value = "/dubbo", method = RequestMethod.GET)
    public CommonResult dubbo() {
        String dubbo = memberService.dubbo();
        return CommonResult.success(dubbo, "dubbo测试成功");
    }
}
